 <template>
<div>
   <nav-header></nav-header>
   <router-view></router-view>
   <nav-footer></nav-footer>
</div>
</template>

<script>
import NavHeader from '@/components/NavHeader'
import NavFooter from '@/components/NavFooter'
export default {
  name: 'home',
  components: {
    NavHeader,
    NavFooter
  },
  data () {
    return {
      result: {},
      params: {
        username: 'admin',
        password: 'admin'
      }
    }
  },
  mounted () {
    // console.log('哈哈哈', this.axios)
    this.axios.post('/user/login', this.params, (res) => {
      this.result = res
    })
  }
}
</script>

<style lang="less" scoped>
</style>
